<!--评价输入框-->
<template>
  <section class="block pdv-3 pdh-3">

    <div class="score-item" v-for="item in prop">
      <div class="text-wrap">
        <div class="title">{{item.pfxm}} ({{item.score}})</div>
        <div class="tip">{{item.pfbz}}</div>
      </div>
      <div class="input-wrap" v-if="false">
        <input v-model="item.value" type="text">
      </div>
    </div>

    <div class="input-wrap">
      <input v-model="apppraiseValue" placeholder="请输入评分" type="text">
    </div>
    <div class="pdv-3"></div>
    <div @click.stop="save()" class="default-block-btn">提交评价</div>
    <div class="pdv-2"></div>

  </section>
</template>

<script>
  import tools from '@/utils/tools'
  export default {
    name: 'appraiseInput',
    props: {
      prop: {
        type: Array,
        default: []
      }
    },
    data () {
      return {
        routeName: '1',
        pageIndex: 1,
        pageSize: 10,
        list: [],
        options: {
          pullUpLoad: true,
          scrollbar: false
        },
        data: {},
        apppraiseValue: ''
      }
    },
    created () {
    },
    methods: {
      save () {
        if (this.apppraiseValue === '') {
          return tools.tip('请输入评分')
        }
        this.$emit('onSubmit', this.prop, this.apppraiseValue)
      }
    }
  }
</script>

<style scoped>

</style>
